package ui.component
{

	import flash.display.Bitmap;
	import flash.display.BitmapData;

	import globals.Global;

	public class ImageButton extends Button
	{
		private var image:Bitmap;

		public function ImageButton(imageUrl:String, defaultData:BitmapData, overData:BitmapData = null, downData:BitmapData = null, disableData:BitmapData = null,
			handler:Function = null)
		{
			super(defaultData, overData, downData, disableData, handler);

			image = new Bitmap(Global.assetsManager.getIconBitmapData(imageUrl));
			addChild(image);
		}
	}
}